package com.cn.service;
/**
 * 门店控制层
 */
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.cn.dao.Dz_mendianDao;
import com.cn.entity.Store_entity;

public class MendianContrl {
	private Dz_mendianDao mdao;
	
	public MendianContrl(){
		mdao = new Dz_mendianDao();
	}
	public List<Map<String, String> > getMendian(String address){
		List<Store_entity>  lit= mdao.getStore(address);
		List<Map<String, String> > list = new ArrayList<>();
		for(Store_entity i: lit){
			Map<String, String> map = new HashMap<>();
			map.put("id", i.getId());
			map.put("name", i.getStore_name());
			list.add(map);
		}
		return list;
	}
}
